// arg0 - UI component to grab
// arg1 - target UI component to attach grabbed UI component to
// arg2 - component group (-1 default)
var __grab, __target, __group;

__grab = argument0;
__target = argument1;
__group = argument2;
//show_message("attach UI component: " + string(__grab.uiID) + " to UI component: " + string(__target.uiID) + " CGroup: " + string(__group));
__grab.uiParent = __target;
__grab.uiButtonGroup = __group;

ds_list_add(__target.children, __grab);
